home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Win2K TCPIP Sec 6.xpl < prev    next >
Text File  |  2002-12-05  |  3KB  |  52 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="2"
  4. "UIPATH"="Network\TCP/IP Hardening
  5. "NAME"="MTU Detection"
  6. "OSVERSION"="0001011"
  7. "VERSION"="1.01"
  8. "LANGUAGE"="VBScript"
  9. "WARNING"="1"
  10. "TEXT 1"="Enable automatic MTU detection (Default)"
  11. "TEXT 2"="Do not try to detect the current MTU" 
  12. "DESCRIPTION 1"="Inside a network, there is always a "data window" called Maximum Transmisson Unit (MTU) that defines how many data somebody can sent before an acknowledge needs to be sent."
  13. "DESCRIPTION 2"="For example, in a default Ethernet network the MTU is 567 bytes. An example: a Client wants to sent some data to a server. The client first checks how big the current MTU is and splits the data (if needed) into chunks of 567 bytes. It then sends out the first chunk of 567 bytes and waits until the server send back a "OKAY, I received the 567 bytes correctly" message before the next chunk is sent. "
  14. "DESCRIPTION 3"="567 bytes are good for most networks, but there might be cases where you need a bigger, or a smaller MTU. For example, if two server are connected with 1 GBit to each other, you can properly extend the MTU so they can sent more data in one step and speeding up the connection (less "OKAY, got that" messages). For this reason, Windows tries to automatically detect which MTU size it should be using." 
  15. "DESCRIPTION 4"="Normally, there is absolutely no need to change this value but if you server is connected to the internet, some back hacks could trick Windows in such way that it thinks it should use a MTU of 1 byte. This means your server will send one byte of an HTML page and wait until the client says "OKAY, got that". Then it will send the next byte etc. This will of course result in a really bad performance of your server since it waits for OKAY messages most of the time."
  16. "DESCRIPTION 5"="If this automatic detection is turned off, a hacker can not trick the server. "
  17. "AUTHOR"="Xteq Systems"
  18. "CONTACTURL"="http://www.xteq.com/"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"=" "
  21.  
  22.  
  23.  
  24. sP="HKLM\System\CurrentControlSet\Services\TcpIp\Parameters\EnablePMTUDiscovery" 'DW 0 = do not detect
  25.  
  26. Sub Plugin_Initialize 
  27.  i=RegReadValue(sP)
  28.  
  29.  if i=1 or IsEmpty(i) then 
  30.     SetUIElement 1,true
  31.  else
  32.     SetUIElement 2,true
  33.  end if
  34.  
  35. End Sub
  36.  
  37. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  38.  if GetUIElement(1)=true then
  39.     If RegValueExists(sP) then 
  40.        Call RegDeleteValue(sP)
  41.     end if
  42.  else
  43.     Call RegWriteValue(sP,0,2)
  44.  end if
  45.  
  46.  Call Restart()
  47. End Sub
  48.  
  49. Sub Plugin_Terminate 
  50. End Sub
  51.  
  52.